package com.enhinck.dbutilweb.model.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.beans.BeanUtils;

/**
 * MyBatisPlus专用DO父类
 *
 * @author hueb
 * @date 2019-12-31 15:19
 */
public abstract class MyBatisPlusBaseDO<T extends Model<?>> extends Model<T> {


    public <T> T copyPropertiesTo(T target, String... ignoreProperties) {
        BeanUtils.copyProperties(this, target, ignoreProperties);
        return target;
    }
}
